package com.udata.client.place;

import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;

public class UserPlace extends Place {
	private String token;

	public UserPlace(String token) {
		this.token = token;
	}

	public String getTokenName() {
		return token;
	}

	public static class Tokenizer implements PlaceTokenizer<UserPlace> {
		@Override
		public String getToken(UserPlace place) {
			return place.getTokenName();
		}

		@Override
		public UserPlace getPlace(String token) {
			return new UserPlace(token);
		}
	}
}
